# ============================================================
# Sell Up Environment Variables
# Copy this file to .env and fill in your values.
# NEVER commit real secrets.
# ============================================================

# --- Application ---
NODE_ENV=development
NEXT_PUBLIC_APP_URL=http://localhost:3000
API_URL=http://localhost:3000

# --- Supabase (PostgreSQL + Auth + Storage) ---
# Find these in your Supabase project: Settings > API
NEXT_PUBLIC_SUPABASE_URL=https://fnpvsgtfjdwlypblzxcu.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImZucHZzZ3RmamR3bHlwYmx6eGN1Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3ODYyNzc3ODksImV4cCI6MjEwMTg1Mzc4OX0.Et0gO1zXbOP7StFzytG4K3HpJrhFwbKWMosIUTyeDS4
# Service role key (SERVER-ONLY, never expose to the browser)
SUPABASE_SERVICE_ROLE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImZucHZzZ3RmamR3bHlwYmx6eGN1Iiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTc4NjI3Nzc4OSwiZXhwIjoyMTAxODUzNzg5fQ.ptK8TBMsj65BcPpDctWECx4p5GklMK6KAJydpP6kt4o

# --- JWT (used for app-level session signing where needed) ---
JWT_SECRET=
JWT_REFRESH_SECRET=

# --- Database (Supabase Postgres direct connection / pooler) ---
# Use the Supabase "Session pooler" or "Transaction pooler" connection string.
# Format:
#   postgresql://postgres.<project-ref>:<password>@aws-0-<region>.pooler.supabase.com:6543/postgres
# Or the direct connection:
#   postgresql://postgres.<project-ref>:<password>@aws-0-<region>.supabase.com:5432/postgres
DATABASE_URL=postgresql://postgres.fnpvsgtfjdwlypblzxcu:AmazingVendor4590!!@aws-1-eu-west-3.pooler.supabase.com:5432/postgres

# --- Payments (Phase: Billing) ---
PAYSTACK_SECRET_KEY=
PAYSTACK_PUBLIC_KEY=
FLUTTERWAVE_SECRET_KEY=
FLUTTERWAVE_PUBLIC_KEY=

# --- Storage (Object storage for product/store images) ---
# Supabase Storage can be used directly via the JS client.
# For S3-compatible storage, configure:
S3_ENDPOINT=
S3_ACCESS_KEY=
S3_SECRET_KEY=
S3_BUCKET=

# --- Email (SendGrid) ---
SENDGRID_API_KEY=
SENDGRID_FROM_EMAIL=noreply@sellup.ng
SENDGRID_FROM_NAME=Sell Up

# --- SMS (Termii/Twilio) ---
TERMII_API_KEY=
TWILIO_ACCOUNT_SID=
TWILIO_AUTH_TOKEN=
TWILIO_PHONE_NUMBER=

# --- WhatsApp ---
WHATSAPP_CONFIG=

# --- Platform Admin Seeder ---
PLATFORM_ADMIN_EMAIL=admin@nefxbietech.com.ng
PLATFORM_ADMIN_PASSWORD=Vendor45!!!

postgresql://postgres:AmazingVendor45%21%21%21@db.fnpvsgtfjdwlypblzxcu.supabase.co:5432/postgres

# Subdomain architecture (try./app./apex)
NEXT_PUBLIC_BASE_DOMAIN=sellup.ng
